package com.atguigu.gmall.annotation;

import com.atguigu.gmall.config.MyBatisPlusConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author 卡尼奶
 * @Date 2022/5/18 18:26
 * @Version 1.0
 */
@EnableTransactionManagement //开启自动事务处理功能
@Import(MyBatisPlusConfig.class)
@MapperScan("com.atguigu.gmall.product.mapper")
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ProductConfig {
}
